import java.net.InetAddress;
import java.net.UnknownHostException;
/*
 * Main.java
 *
 * Created on 10 de Fevereiro de 2007, 00:25
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */


public class Cliente {
    public static void main(String args[]) {
        try {
            System.out.println(InetAddress.getLocalHost().getHostAddress());
        } catch (UnknownHostException ex) {
            ex.printStackTrace();
        }
        /*try {
            System.out.println(Naming.lookup(RegionServer.HOST_URL));
            
            SharedMem mem = (SharedMem) Naming.lookup(RegionServer.HOST_URL);
            
            Objeto objeto = new Objeto();
            objeto.nome = "nome";
            
            CriticalRegion regiao = mem.getRegion("nova");
            
            regiao.write(objeto);
            
            System.out.println(regiao.read(new Objeto()));
        } catch (Exception e) {
            System.out.println("Error: " + e);
        }*/
    }
}
